package br.com.financas.service;

import java.util.List;

import br.com.financas.abstractions.ITipoRepository;
import br.com.financas.abstractions.ITipoService;
import br.com.financas.entity.Tipo;
import br.com.financas.enumflags.EnumReferenciaFlag;
import br.com.financas.repository.TipoRepository;

public class TipoService implements ITipoService<Tipo> {
	private ITipoRepository<Tipo> tipoRepository;
	
	public TipoService(){
		tipoRepository =  new TipoRepository(manager);
		
	}

	@Override
	public String validaInserir(Tipo entity) throws Exception {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public boolean validaDeletar(Tipo entity) throws Exception {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public String validaAtualizar(Tipo entity) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public List<Tipo> obterTodos() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public List<Tipo> validarObterPorReferencia(EnumReferenciaFlag referencia) {
		return tipoRepository.obterPorReferencia(referencia);
	}

}
